package com.lzw.DailyAudit.service.dateAggregation_02.DailyAudit.service.dateAggregation_02;

import com.hooya.fa.eu.biz.service.EuCheckService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class postTest {

	@Autowired
	private EuCheckService euCheckService;

	public void PostTest(String startDate){

		log.info("2.post_test开始执行");

		try {
			log.info("2.test_qty_changes开始执行");
			euCheckService.checkStockQty(startDate);
			log.info("2.test_qty_changes执行完毕");
		} catch (Exception e) {
			log.error("2.test_qty_changes执行异常");
			throw new RuntimeException("2.test_qty_changes执行异常", e);
		}

		try {
			log.info("2.test_sheetnumber开始执行");
			euCheckService.checkAndContrastStockList(startDate);
			log.info("2.test_sheetnumber执行完毕");
		} catch (Exception e) {
			log.error("2.test_sheetnumber执行异常");
			throw new RuntimeException("2.test_sheetnumber执行异常", e);
		}

		log.info("2.post_test执行完毕");
	}

}
